package com.example.fdbus.request

data class RequestBean(
    val type: Int,
    val className: String,
    val methodName: String,
    val requestParamters: Array<RequestParamter?>
) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as RequestBean

        if (type != other.type) return false
        if (className != other.className) return false
        if (methodName != other.methodName) return false
        return requestParamters.contentEquals(other.requestParamters)
    }

    override fun hashCode(): Int {
        var result = type
        result = 31 * result + className.hashCode()
        result = 31 * result + methodName.hashCode()
        result = 31 * result + requestParamters.contentHashCode()
        return result
    }
}